<?php

namespace app\api\model;

use think\Model;

class UserBalanceLog extends Model
{
    protected $autoWriteTimestamp = false;

    public static function add($user_id, $money, $order_no, $scene)
    {
        return self::create([
            'user_id' => $user_id,
            'money' => $money,
            'scene' => $scene,
            'description' => '订单单号：'.$order_no,
            'createtime' => time()
        ]);
    }
}
